package org.sgx.htmlminimizator.client;

import org.sgx.gwteditors.client.impl1.edbean.EditableBean;
/**
 * a java bean with the minimizator configuration editable with gwteditors
 * @author sg
 *
 */
public abstract class Config implements EditableBean {

	String removeAttributes; 
	Boolean extractText; 
	Boolean removeElementWithoutText;  
	Boolean preserveSpaces; 
	
	public Config() {}

	public void loadDefault() {
		removeAttributes="*"; 
		extractText=false; 
		removeElementWithoutText=true; 
		preserveSpaces=false; 
	}
	
	@Override
	public String toString() {
		return "Config(removeAttributes: "+removeAttributes+", extractText: "+extractText; 
	}
	public String getRemoveAttributes() {
		return removeAttributes;
	}

	public void setRemoveAttributes(String removeAttributes) {
		this.removeAttributes = removeAttributes;
	}

	public Boolean getExtractText() {
		return extractText;
	}

	public void setExtractText(Boolean extractText) {
		this.extractText = extractText;
	}

	public Boolean getRemoveElementWithoutText() {
		return removeElementWithoutText;
	}

	public void setRemoveElementWithoutText(Boolean removeElementWithoutText) {
		this.removeElementWithoutText = removeElementWithoutText;
	}

	public Boolean getPreserveSpaces() {
		return preserveSpaces;
	}

	public void setPreserveSpaces(Boolean preserveSpaces) {
		this.preserveSpaces = preserveSpaces;
	}
	
	
}
